Show:

ia.Point Class

Defined in: ia\geom\Point.js:1
Module: ia

Point object.

Constructor

ia.Point

(
  • [x=0]
  • [y=0]
)

Defined in ia\geom\Point.js:1

Parameters:

  • [x=0] Number optional

    The x coordinate of the origin.

  • [y=0] Number optional

    The y coordinate of the origin.

Item Index

Methods

Properties

Methods

subtract

(
  • p
)
ia.Point

Defined in ia\geom\Point.js:34

Subtracts another point from this one.

Parameters:

Returns:

ia.Point: A new point.

toString

() String

Defined in ia\geom\Point.js:46

Get a simple text representation of this object.

Returns:

String: A text String.

Properties

x

Number

Defined in ia\geom\Point.js:16

The x coord.

Default: 0

y

Number

Defined in ia\geom\Point.js:25

The y coord.

Default: 0